import request from '@/utils/request'

// 获取歌曲url
export function getSongUrl(params) {
    return request({
        url: "/song/url",
        method: "get",
        params
    })
}
// 获取歌曲详情
// /song/detail?ids=347230
export function getSongDetail(params) {
    return request({
        url: "/song/detail",
        method: "get",
        params
    })
}
// 获取歌词
// /lyric?id=1811921555
export function getLyric(params) {
    return request({
        url: "/lyric",
        method: "get",
        params
    })
}

// 喜欢该音乐 收藏
export function getLike(params) {
    return request({
        url: "/like",
        method: "get",
        params
    })
}

//查看歌曲评论
export function getCommentMusic(params) {
    return request({
        url: "/comment/music",
        method: "get",
        params
    })
}
// 点赞
export function getCommentLike(params) {
    return request({
        url: "/comment/like",
        method: "get",
        params
    })
}
//关注 用户
export function getFollow(params) {
    return request({
        url: "/follow",
        method: "get",
        params
    })
}
//收藏 歌手
export function getArtistSub(params) {
    return request({
        url: "/artist/sub",
        method: "get",
        params
    })
}
// 收藏歌手列表
export function getArtistSublist() {
    return request({
        url: "/artist/sublist",
        method: "get",
    })
}